package 桥接模式;

public class Main {
    public static void main(String[] args) {
        Bridge bridge=new MyBridge();
        Sourceable source1=new SourceSub1();
        bridge.setSource(source1);
        bridge.method();

        Sourceable source2=new SourceSub1();
        bridge.setSource(source2);
        bridge.method();


    }
}
